package org.example.spring.service;

import org.example.spring.domain.dto.OrderDTO;
import org.example.spring.domain.dto.OrderDetailDTO;
import org.example.spring.domain.pojo.Order;

import java.util.ArrayList;
import java.util.List;

public interface OrderService {
    ArrayList<Order> getOrderByStatus(Integer status);

    void updateOrderStatus(Integer orderId, Integer status);

    ArrayList<OrderDetailDTO> getOrderDetailByOrderId(Integer orderId);


    Integer addOrder(Order order);

    OrderDTO getOrdersByPage(OrderDTO orderDTO);

    List<Order> list();
}
